package com.chinasofti.demo06;

public class Person {
    private  String name;
    private  int age;
    public  Person(){
        System.out.println("父类无参构造");
    }
    public Person(String name, int age) {
        System.out.println("父类有参构造");
        this.name = name;
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }
    public  void show(){

    }
}


